package com.enjoyor.soa.traffic.util.helper.export;

import java.util.Map;

public class CustomHSSFCell {
    private Object cellValue;
    private int colBegin;
    private int rowBegin;
    private int colEnd;
    private int rowEnd;
    private boolean isMerged;
    private int colWidth;
    private String fieldName;
    @SuppressWarnings("rawtypes")
    private Map keyValue;

    public CustomHSSFCell(Object cellValue, int colBegin, int rowBegin, int colWidth) {
        this.cellValue = cellValue;
        this.colBegin = colBegin;
        this.rowBegin = rowBegin;
        this.isMerged = false;
        this.colWidth = colWidth;
    }

    public CustomHSSFCell(Object cellValue, int colBegin, int rowBegin, int colEnd, int rowEnd, int colWidth) {
        this.cellValue = cellValue;
        this.colBegin = colBegin;
        this.rowBegin = rowBegin;
        this.colEnd = colEnd;
        this.rowEnd = rowEnd;
        this.isMerged = true;
        this.colWidth = colWidth;
    }

    public CustomHSSFCell(Object cellValue, int colBegin, int rowBegin, int colWidth, String fieldName) {
        this.cellValue = cellValue;
        this.colBegin = colBegin;
        this.rowBegin = rowBegin;
        this.isMerged = false;
        this.colWidth = colWidth;
        this.fieldName = fieldName;
    }

    @SuppressWarnings("rawtypes")
    public CustomHSSFCell(Object cellValue, int colBegin, int rowBegin, int colWidth, String fieldName, Map keyValue) {
        this.cellValue = cellValue;
        this.colBegin = colBegin;
        this.rowBegin = rowBegin;
        this.isMerged = false;
        this.colWidth = colWidth;
        this.fieldName = fieldName;
        this.keyValue = keyValue;
    }

    @SuppressWarnings("rawtypes")
    public Map getKeyValue() {
        return this.keyValue;
    }

    @SuppressWarnings("rawtypes")
    public void setKeyValue(Map keyValue) {
        this.keyValue = keyValue;
    }

    public String getFieldName() {
        return this.fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public int getColWidth() {
        return this.colWidth;
    }

    public void setColWidth(int colWidth) {
        this.colWidth = colWidth;
    }

    public int getColBegin() {
        return this.colBegin;
    }

    public void setColBegin(int colBegin) {
        this.colBegin = colBegin;
    }

    public int getRowBegin() {
        return this.rowBegin;
    }

    public void setRowBegin(int rowBegin) {
        this.rowBegin = rowBegin;
    }

    public int getColEnd() {
        return this.colEnd;
    }

    public void setColEnd(int colEnd) {
        this.colEnd = colEnd;
    }

    public int getRowEnd() {
        return this.rowEnd;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public boolean isMerged() {
        return this.isMerged;
    }

    public void setMerged(boolean isMerged) {
        this.isMerged = isMerged;
    }

    public Object getCellValue() {
        return this.cellValue;
    }

    public void setCellValue(Object cellValue) {
        this.cellValue = cellValue;
    }
}
